import permissions from './permissions'
// 自定义指令  v-auth
const directives = {
    auth: permissions,
}


export default {
    //全局安装指令
    install(Vue) {
        Object.keys(directives).forEach((key) => {
            //安装了指令v-auth , 钩子函数为bind
            Vue.directive(key, directives[key])
        })
    }
}
